﻿namespace DesignPattern.com.bridge.gameDemo {
    public abstract class IWeapon {
        protected int atk;
        protected float range;
        protected int atkPlus;

        protected ICharacter owner;

        public abstract void attack(ICharacter target);

        public int Atk {
            get { return atk; }
            set { atk = value; }
        }

        public float Range {
            get { return range; }
            set { range = value; }
        }

        public int AtkPlus {
            get { return atkPlus; }
            set { atkPlus = value; }
        }

        public ICharacter Owner {
            get { return owner; }
            set { owner = value; }
        }
    }
}